import React, { FC } from 'react'
import { HeroProps } from '@/models/hero';
import { request } from 'umi';
import {Image} from 'antd'
interface HeroItemProps {
  data: HeroProps
  thisIndex: number
}
const HeroItem: FC<HeroItemProps> = ({ data, thisIndex }) => {
  const img = data.index_img
  const url = img.replace('https://img.dota2.com.cn/dota2static','/img')
  return (
    <div>
      <img
        width={100}
        src={url}
        referrerPolicy='no-referrer'
        />
      <p>{data.name_loc}</p>
    </div>
  )
 
}

export default HeroItem